<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

<h:head>
</h:head>
<h:body>
	<ui:include src="../horizontal_menu.xhtml">
	</ui:include>
    
	<p:panel header="#{userBean.username}">
	<c:if test="#{personalPageBean.canCreateParty()}">
		<h:link outcome="createparty">Create a party</h:link><br/>
	</c:if>
	<c:if test="#{personalPageBean.canRequest()}">
		<h:link outcome="/partyview">Join a party</h:link><br/>
	</c:if>
	<c:if test="#{personalPageBean.memberOfParty}">
		<h:link outcome="myparty">Veiw my party</h:link><br/>
	</c:if>
	<c:if test="#{personalPageBean.hasPendingRequest()}">
		<h:outputLabel value="You have a request that is not yet processed"/>
	</c:if>
	</p:panel>
	<p>	</p>
</h:body>
</html>